﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Separate.BLL
{
    public partial class AutoForm : Form
    {
        public static AutoForm autoForm;
        public AutoForm()
        {
            InitializeComponent();
            autoForm = this;
        }

        private void AutoForm_Load(object sender, EventArgs e)
        {

        }


        public void buffDisA(Color color,string sn,string type)
        {
            this.BeginInvoke(new EventHandler(delegate
            {
                BuffPanA.BackColor = color;
                BuffSNLabA.Text = sn;
                BuffXboA.Text = type;

            }));
        }
        public void buffDisB(Color color, string sn, string type)
        {
            this.BeginInvoke(new EventHandler(delegate
            {
                BuffPanB.BackColor = color;
                BuffSNLabB.Text = sn;
                BuffXboB.Text = type;

            }));
        }

        public void singleDisB(Color color, string sn, string type)
        {
            this.BeginInvoke(new EventHandler(delegate
            {
                SinglePanB.BackColor = color;
                SingleSNB.Text = sn;
                SingleXboB.Text = type;

            }));
        }
        public void singleDisA(Color color, string sn, string type)
        {
            this.BeginInvoke(new EventHandler(delegate
            {
                SinglePanA.BackColor = color;
                SingleSNA.Text = sn;
                SingleXboA.Text = type;

            }));
        }
    }
}
